/*
 * @Description:
 * @Version: V1.0.0
 * @Author: yangshangru yangshangru@supconit.com
 * @Date: 2024-08-02 10:51:07
 * @LastEditors: yangshangru yangshangru@supconit.com
 * @LastEditTime: 2024-08-02 10:51:20
 * @FilePath: selectionStore.ts
 * 2024-08-02 10:51:07
 */
// src/stores/selectionStore.ts
import { defineStore } from 'pinia'

export const useSelectionStore = defineStore('selection', {
  state: () => ({
    selectedRoomId: null as string | null
  }),
  actions: {
    clearSelection(roomId: string | null) {
      this.selectedRoomId = roomId
    }
  }
})
